package com.example.gymmanagement.service;

import com.example.gymmanagement.Utils.Result;
import com.example.gymmanagement.domain.LoginParam;
import com.example.gymmanagement.domain.User;

public interface LoginService {

    //按token查当前用户
    User checkToken(String token) ;
    //登录
    Result login(LoginParam loginParam);
    //退出登录
    Result logout(String token);

    Result register(User user);
}
